package com.xuxin.pda;

import android.app.Application;
import android.zyapi.pos.PosManager;

import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.Utils;
import com.xuxin.pda.base.BaseConstant;

/**
 * Created by xu_xin
 * Created on 2020.06.05
 */
public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        initUtils();
    }

    private void initUtils() {
        Utils.init(this);
        LogUtils.getConfig().setLogSwitch(BaseConstant.isDebug);
        LogUtils.getConfig().setConsoleSwitch(BaseConstant.isDebug);
        LogUtils.getConfig().setGlobalTag("xu_xin");
        LogUtils.getConfig().setLogHeadSwitch(false);
        LogUtils.getConfig().setBorderSwitch(false);
        LogUtils.getConfig().setSingleTagSwitch(false);
        PosManager.get().init(this, BaseConstant.pda_model);
    }
}